package org.yijiaganxi.common.entity.delivery;

import java.math.BigDecimal;
import java.util.Date;

import org.yijiaganxi.common.entity.category.YjgxCategory;
import org.yijiaganxi.common.entity.category.YjgxCategory.YjgxCategoryBuilder;

import com.baomidou.mybatisplus.annotations.TableField;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 配送费管理
 * </p>
 *
 * @author zhangguowei123
 * @since 2020-08-30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class YjgxDelivery implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("createDate")
    private Date createDate;
    @TableField("modifyDate")
    private Date modifyDate;
    @TableField("createUser")
    private String createUser;
    @TableField("modifyUser")
    private String modifyUser;
    /**
     * 最大配送距离
     */
    @TableField("maxDistance")
    private BigDecimal maxDistance;
    /**
     * 最小配送距离
     */
    @TableField("minDistance")
    private BigDecimal minDistance;
    /**
     * 配送费
     */
    private BigDecimal money;
    /**
     * 0不启用  1启用
     */
    private Integer status;
    /**
     * 距离类型  0一下  1之内  2之上
     */
    private Integer type;
    private BigDecimal distance;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public BigDecimal getMaxDistance() {
        return maxDistance;
    }

    public void setMaxDistance(BigDecimal maxDistance) {
        this.maxDistance = maxDistance;
    }

    public BigDecimal getMinDistance() {
        return minDistance;
    }

    public void setMinDistance(BigDecimal minDistance) {
        this.minDistance = minDistance;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getDistance() {
        return distance;
    }

    public void setDistance(BigDecimal distance) {
        this.distance = distance;
    }

    @Override
    public String toString() {
        return "YjgxDelivery{" +
        "id=" + id +
        ", createDate=" + createDate +
        ", modifyDate=" + modifyDate +
        ", createUser=" + createUser +
        ", modifyUser=" + modifyUser +
        ", maxDistance=" + maxDistance +
        ", minDistance=" + minDistance +
        ", money=" + money +
        ", status=" + status +
        ", type=" + type +
        ", distance=" + distance +
        "}";
    }
}
